package ru.ipo.dces.plugins.admin.components;

import info.clearthought.layout.TableLayout;
import ru.ipo.dces.plugins.admin.LoginPluginV2;
import ru.ipo.dces.plugins.admin.resources.ImageResources;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: oleg
 * Date: 25.05.11
 * Time: 21:15
 */
public class ContestListLegend extends JPanel {

    public ContestListLegend() {
        double[] columns = new double[] {LoginPluginV2.separatorGap, TableLayout.PREFERRED,
                LoginPluginV2.separatorGap, TableLayout.FILL};
        double[] rows = new double[] {TableLayout.FILL, TableLayout.PREFERRED, TableLayout.PREFERRED};

        setLayout(new TableLayout(columns, rows));

        add(new JLabel(ImageResources.ADMIN_REGISTRATION_IMAGE), "1, 1");
        add(new JLabel(ImageResources.SELF_REGISTRATION_IMAGE), "1, 2");
        add(new JLabel("Без саморегистрации"), "3, 1");
        add(new JLabel("С саморегистрацией"), "3, 2");
    }
}
